package cate.game.world.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBWorld;
import cate.game.role.Role;
import easy.java.dev.note.NoteField;

//public class  {
@ClientMsg(title = "角色游戏世界相关初始化数据", description = "会包含一些零碎的数据，整合在这个消息中")
public class RoleWorldDataResp implements MsgOutput {
    @NoteField("是否已经领取过收藏有礼奖励")
    public boolean favoriteGot;

    @Override
    public MsgConfig conf() {
        return MsgIdBWorld.ROLE_DATA_RESP;
    }

    public static void doSend(Role role) {
        RoleWorldDataResp resp = new RoleWorldDataResp();
        resp.favoriteGot = role.getWorld().other.favoriteGot;
        resp.sendNow(role);
    }

}
